
package com.braintreepayments.cardform.utils;

import com.braintreepayments.cardform.ResourceTable;
import ohos.aafwk.ability.AbilitySlice;

public enum ExpirationDateDialogTheme {

    LIGHT(ResourceTable.Color_bt_black_87, ResourceTable.Color_bt_white_87, ResourceTable.Color_bt_black_38),

    DARK(ResourceTable.Color_bt_white_87, ResourceTable.Color_bt_black_87, ResourceTable.Color_bt_white_38);

    private final int mItemTextColor;
    private final int mItemInverseTextColor;
    private final int mItemDisabledTextColor;

    private int mResolvedItemTextColor;
    private int mResolvedItemInverseTextColor;
    private int mResolvedItemDisabledTextColor;
    private int mResolvedSelectedItemBackground;

    ExpirationDateDialogTheme(int itemTextColor, int itemInverseTextColor, int itemDisabledTextColor) {
        mItemTextColor = itemTextColor;
        mItemInverseTextColor = itemInverseTextColor;
        mItemDisabledTextColor = itemDisabledTextColor;
    }

    public static ExpirationDateDialogTheme detectTheme(AbilitySlice activity) {
        ExpirationDateDialogTheme theme;
        theme = ExpirationDateDialogTheme.LIGHT;
        theme.mResolvedItemTextColor = theme.mItemTextColor;
        theme.mResolvedItemInverseTextColor = theme.mItemInverseTextColor;
        theme.mResolvedItemDisabledTextColor = theme.mItemDisabledTextColor;
        theme.mResolvedSelectedItemBackground = ResourceTable.Color_bt_black_87;
        return theme;
    }

    public int getItemTextColor() {
        return mResolvedItemTextColor;
    }

    public int getItemInvertedTextColor() {
        return mResolvedItemInverseTextColor;
    }

    public int getItemDisabledTextColor() {
        return mResolvedItemDisabledTextColor;
    }

    public int getSelectedItemBackground() {
        return mResolvedSelectedItemBackground;
    }
}

